package com.example.boardroom.demo.times;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.entity.node.BaseNode;
import com.chad.library.adapter.base.provider.BaseNodeProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.boardroom.R;

public class TimesRootProvider extends BaseNodeProvider {
    @Override
    public int getItemViewType() {
        return 0;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_times2;
    }

    @Override
    public void convert(@NonNull BaseViewHolder holder, BaseNode baseNode) {
        TimesRootNode.RowsDTO node = (TimesRootNode.RowsDTO) baseNode;
        holder.setText(R.id.tv_pageName, node.packageName);
    }
}
